package com.base.commonlib.http.service;


import java.util.Map;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.HeaderMap;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.PartMap;
import retrofit2.http.Url;

/**
 * Date：2019/3/28 下午9:41
 * Creator：arvin
 * Des：
 */

public interface PutService_Form {


    @FormUrlEncoded
    @PUT
    Call<String> synUpForm(@Url String baseUrl, Map<String, RequestBody> content);


    @FormUrlEncoded
    @PUT
    Flowable<Response<String>> upForm(@Url String baseUrl, @FieldMap Map<String, String> fields);
    @Multipart
    @PUT
    Flowable<Response<String>> upContent(@Url String baseUrl,@PartMap() Map<String, RequestBody> picList);

    @FormUrlEncoded
    @PUT
    Call<String> synUpForm(@Url String baseUrl, @FieldMap Map<String, RequestBody> fields, @HeaderMap Map<String, String> headers);
    @Multipart
    @PUT
    Flowable<Response<String>> upContent(@Url String baseUrl,@PartMap() Map<String, RequestBody> picList, @HeaderMap Map<String, String> headers);



}
